package com.itheima.manager;

import com.itheima.domain.CompanyAddress;
import com.itheima.service.ICompanyAddressService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class OmsCompanyAddressManager {

    @DubboReference
    private ICompanyAddressService companyAddressService;

    //获取所有收货地址
    public List<CompanyAddress> list() {
        return companyAddressService.selectAll();
    }
}
